﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PaymentHelper.Core.RelatedObject;
using PaymentHelper.Core.CommonUtils;

namespace PaymentHelper
{
    public abstract class PaymentResult
    {
        public bool Success
        {
            get;
            set;
        }
        public IList<string> Errors
        {
            get;
            set;
        }
        public PaymentStatus PaymentStatus
        {
            get;
            set;
        }

        public virtual void AddError(string error)
        {
            if (Errors == null)
                Errors = new List<string>();
            Errors.Add(error);
        }
    }
}
